package io.coderyeah.pet.mapper;

import io.coderyeah.pet.domain.Pet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.coderyeah.pet.dto.PetDTO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author coderyeah
 * @description 针对表【t_pet】的数据库操作Mapper
 * @createDate 2022-09-23 20:07:49
 * @Entity io.coderyeah.pet.domain.Pet
 */
public interface PetMapper extends BaseMapper<Pet> {

    List<Pet> getAllPets(PetDTO petDTO);

    Long getCounts(PetDTO petDTO);

    void editType(PetDTO petDTO);

    void offsale(@Param("ids") List<Long> ids, @Param("date") Date date);

    void onsale(@Param("id") Long id, @Param("date") Date date);

    Pet getPetById(Long id);
}




